package com.joolun.tennis.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.joolun.tennis.mapper.CoachClubMapper;
import com.joolun.tennis.domain.CoachClub;
import com.joolun.tennis.service.ICoachClubService;

/**
 * 教练俱乐部关联Service业务层处理
 * 
 * @author tennisport.cn
 * @date 2022-03-17
 */
@Service
public class CoachClubServiceImpl implements ICoachClubService 
{
    @Autowired
    private CoachClubMapper coachClubMapper;

    /**
     * 查询教练俱乐部关联
     * 
     * @param id 教练俱乐部关联ID
     * @return 教练俱乐部关联
     */
    @Override
    public CoachClub selectCoachClubById(Long id)
    {
        return coachClubMapper.selectCoachClubById(id);
    }

    /**
     * 查询教练俱乐部关联列表
     * 
     * @param coachClub 教练俱乐部关联
     * @return 教练俱乐部关联
     */
    @Override
    public List<CoachClub> selectCoachClubList(CoachClub coachClub)
    {
        return coachClubMapper.selectCoachClubList(coachClub);
    }

    /**
     * 新增教练俱乐部关联
     * 
     * @param coachClub 教练俱乐部关联
     * @return 结果
     */
    @Override
    public int insertCoachClub(CoachClub coachClub)
    {
        return coachClubMapper.insertCoachClub(coachClub);
    }

    /**
     * 修改教练俱乐部关联
     * 
     * @param coachClub 教练俱乐部关联
     * @return 结果
     */
    @Override
    public int updateCoachClub(CoachClub coachClub)
    {
        return coachClubMapper.updateCoachClub(coachClub);
    }

    /**
     * 批量删除教练俱乐部关联
     * 
     * @param ids 需要删除的教练俱乐部关联ID
     * @return 结果
     */
    @Override
    public int deleteCoachClubByIds(Long[] ids)
    {
        return coachClubMapper.deleteCoachClubByIds(ids);
    }

    /**
     * 删除教练俱乐部关联信息
     * 
     * @param id 教练俱乐部关联ID
     * @return 结果
     */
    @Override
    public int deleteCoachClubById(Long id)
    {
        return coachClubMapper.deleteCoachClubById(id);
    }
}
